Repository navigation
fix: make build --no-cache and start --rebuild work - #13
Open
TheDreamSaver wants to merge 1 commit into
Open
TheDreamSaver wants to merge 1 commit into
TheDreamSaver wants to merge 1 commit into
Conversation
Commander stores the negatable `--no-cache` option as `cache: false`, but runBuild read `opts.noCache`, which was always undefined, so docker never received --no-cache. `start --rebuild` was declared but never read. Read `cache` (via a shared noCacheArgs helper for the three docker build call sites), and have `start --rebuild` call runBuild with the same framework/browser selection before the image is resolved. Fixes SilosLabs#12
Member
|
Need to verify, looking into it. |
This was referenced Nov 15, 2026
Member
Author
|
@Asdivyansh, a friendly bump on this one. It still merges cleanly with current If it helps with verifying, here's the quickest check with Docker running:
Happy to rebase or change anything. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #12
What
silo build --no-cache:runBuildnow reads Commander'scacheoption (BuildOptions.noCache→cache?: boolean, and thecli.tsaction type to match). The three duplicated...(opts.noCache ? ["--no-cache"] : [])call sites now share a small exportednoCacheArgs(cache)helper.silo start --rebuild:runStartnow callsrunBuild({ framework, browser })after the "already running" check and before the image is resolved.runBuildtags the configured sandbox image, orframeworkImageTag(id, { browser })for framework runs, which is exactly the imagestartthen uses, so no tag needs to be passed through.quickstart: droppednoCache: falsefrom itsrunBuildcall. That's the default now, so behaviour is unchanged. Typecheck caught this one.tests/commands/build.test.ts: coversnoCacheArgs.Testing
npm run typecheck: passes.npm test: 24 files, 341 tests pass (2 new).npm run build: succeeds.dockeronPATH(logs its args;info→ 0,inspect→ 1,build→ configurable) and a throwawayHOME:mainsilo buildbuild --tag silo-sandbox:latestsilo build --no-cachebuild --tag silo-sandbox:latest(flag dropped)build --tag silo-sandbox:latest --no-cachesilo start --rebuildnetworkbuild --tag silo-sandbox:latestfirstsilo startsrc/cli.ts, in separate hunks. A trial merge is clean in either order, and the combined result typechecks and passes all 343 tests.